#include "tool.h"

int main(int argc, char* argv[])
{
    if (argc < 4)
    {
        std::cerr << "Usage: " << argv[0] << " <DICOM Directory> <Output RAW File> <Output MHD File>" << std::endl;
        return EXIT_FAILURE;
    }

    auto image = lzw::CreateRawFile(argv[1], argv[2]);
    if (image)
    {
        lzw::CreateMHDFile(argv[3], argv[2], image);
    }

    return EXIT_SUCCESS;
}